Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[duckdb] Utility to compare table schemas #1442

Conversation

FelixGV
Copy link
Contributor

@FelixGV FelixGV commented Jan 15, 2025

This is used to check whether a pre-existing table on disk has a schema equal to the one we want.

Did this by introducing various utility classes, including:

  • ColumnDefinition
  • TableDefinition
  • IndexType
  • SQLUtils

Also refactored unit tests to decouple from DuckDB, so that it's easier to test other engines in the future (e.g., SQLite).

How was this PR tested?

New unit tests.

Does this PR introduce any user-facing changes?

  • No. You can skip the rest of this section.
  • Yes. Make sure to explain your proposed changes and call out the behavior change.

This is used to check whether a pre-existing table on disk has a
schema equal to the one we want.

Did this by introducing various utility classes, including:

- ColumnDefinition
- TableDefinition
- IndexType
- SQLUtils

Also refactored unit tests to decouple from DuckDB, so that it's
easier to test other engines in the future (e.g., SQLite).
@FelixGV FelixGV enabled auto-merge (squash) January 15, 2025 23:46
@FelixGV FelixGV merged commit 4bf1fa8 into linkedin:main Jan 15, 2025
56 checks passed
@FelixGV
Copy link
Contributor Author

FelixGV commented Jan 15, 2025

Thanks for the review @kvargha !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants